package com.sl.mes.app.service.bd;


import com.sl.mes.app.dao.bd.AggBdMaterialVo;
import com.sl.mes.db.itf.bd.IBdMaterial;
import com.sl.mes.db.itf.bd.IBdMaterialV;
import com.sl.mes.db.vo.BdMaterialV;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BdMaterialVService {

    @Resource
    private IBdMaterialV iBdMaterialV;

    public AggBdMaterialVo getBdMaterialById(String pk_source){
        AggBdMaterialVo aggBdMaterialVo = new AggBdMaterialVo();
        BdMaterialV bdMaterialV =iBdMaterialV.findBdMaterialById(pk_source);
        aggBdMaterialVo.setBdMaterialV(bdMaterialV);
        return aggBdMaterialVo;
    }
}
